package com.design.genernal;

/**
 * 抽象中介者
 *
 * @author: cong zhi
 * @createDate: 2023/7/17 18:46
 * @updateUser: cong zhi
 * @updateDate: 2023/7/17 18:46
 * @updateRemark: 修改内容
 * @version: v1.0
 */
public abstract class Mediator {


    protected ConcreteColleagueA colleageA;
    protected ConcreteColleagueB colleageB;

    public void setColleageA(ConcreteColleagueA colleageA) {
        this.colleageA = colleageA;
    }

    public void setColleageB(ConcreteColleagueB colleageB) {
        this.colleageB = colleageB;
    }

    // 中介者业务逻辑
    public abstract void transferA();

    public abstract void transferB();
}
